package demo02;

import java.lang.annotation.*;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/26 16:43
 */
public class Test03 {
}
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE})
@interface Anno1{
    int size() default 10;

    String[] method();

    Mei mei();

    Anno2 anno2();
}
@interface Anno2{
    int size();
}
enum Mei{
    PLAY,EAT
}
@Anno1(method = {"上","下","左","右"},mei=Mei.PLAY,anno2=@Anno2(size = 5))
class Mouse2{
}

